package com.zk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ljw
 * @since 2020-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单号
     */
    @TableId(value = "order_id")
    private Long orderId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 下单时间
     */
    private Date orderTime;

    /**
     * 订单价格
     */
    private Integer orderPrice;

    /**
     * 订单详情
     */
    @TableField(exist = false)
    private List<OrderDetail> detail;

    /**
     * 是否删除，0为未删除，1为已删除
     */
    @JsonIgnore
    @TableLogic
    private Integer isDel;
}
